package mainpkg;

import javax.swing.*;

import chessboardpkg.ChessBoard;

public class ChessMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	        SwingUtilities.invokeLater(new Runnable() {
	            public void run() {
	                createAndShowGUI(); 
	            }
	        });
	}

	protected static void createAndShowGUI() {
		System.out.println("Created GUI on EDT? "+
		        SwingUtilities.isEventDispatchThread());
				//Create main form
		        JFrame f = new JFrame("CHESS!");
		        f.setSize(1000, 1000);
		        //Maximize
		        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		        
		        ChessBoard c = new ChessBoard();
		        f.add(c);
		        //Display
		        f.setVisible(true);
	}

}